let clientProtos = require("../config/clientProtos");
let serverProtos = require("../config/serverProtos");

var validRoutes = [];

console.log("check client route begin........");
for (let clientRoute in clientProtos) {
    validRoutes.push(clientRoute);
    if (!serverProtos[clientRoute]) {
        console.log(clientRoute);
    }
}
console.log("check client route end........");

console.log("\n");
console.log("\n");
console.log("\n");
console.log("\n");

console.log("check server route begin.......");
for (let serverRoute in serverProtos) {
    if (serverRoute.indexOf("message ") === 0) {
        continue;
    }
    if (!clientProtos[serverRoute]) {
        console.log(serverRoute);
        validRoutes.push(serverRoute);
    }
}
console.log("check server route end.......");

console.log(JSON.stringify(validRoutes));

